<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/menu.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditPagosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <p:growl/>
            <h:form>
                <h:panelGrid columns="6">
                    <p:outputLabel value="#{bundle.EditPagosLabel_descuento}" for="descuento" />
                    <p:inputText id="descuento" value="#{pagosController.selected.descuento}" title="#{bundle.EditPagosTitle_descuento}" />
                    <p:outputLabel value="#{bundle.EditPagosLabel_total}" for="total" />
                    <p:inputText id="total" value="#{pagosController.selected.total}" title="#{bundle.EditPagosTitle_total}" />
                    <p:outputLabel value="#{bundle.EditPagosLabel_fecha}" for="fecha" />
                    <p:calendar maxlength="12" id="fecha" value="#{pagosController.selected.fecha}" locale="de" navigator="true" pattern="MM/dd/yyyy" />
                    <p:outputLabel value="#{bundle.EditPagosLabel_plan}" for="plan" />
                    <p:selectOneMenu id="plan" value="#{pagosController.selected.plan}" required="true" requiredMessage="#{bundle.EditPagosRequiredMessage_plan}">
                        <f:selectItems value="#{planesController.itemsAvailableSelectOne}"/>
                    </p:selectOneMenu>
                    <p:outputLabel value="#{bundle.EditPagosLabel_cliente}" for="cliente" />
                    <p:selectOneMenu id="cliente" value="#{pagosController.selected.cliente}" >
                        <f:selectItems value="#{clientesController.itemsAvailableSelectOne}"/>
                    </p:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{pagosController.update}" value="#{bundle.EditPagosSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditPagosViewLink}"/>
                <br />
                <h:commandLink action="#{pagosController.prepareList}" value="#{bundle.EditPagosShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditPagosIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
